#include <config.h>

// #define ENTRY_POINT 0x0
// #define MEM_BASE_ADDR 0x80000000
// #define BIN_MEM_SIZE 0x8000

typedef unsigned long long u64;
void mov_mem()
{
#ifdef RELOCATE_APP
	puts("start move to mem runtime\n");
	u64 *fe = (u64*)ENTRY_POINT;
	u64 *me = (u64*)MEM_BASE_ADDR;
	while ((u64)fe < MOV_MEM_SIZE) {
		*me = *fe;
		fe++;
		me++;
	}
	puts("end move to mem runtime\n");
#endif
}